﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CPPEI.WorkflowCore
{
    /// <summary>
    /// 操作集合
    /// </summary>
    public class ActionCollection
    {
        private List<Action> _list;

        public ActionCollection()
        {
            _list = new List<Action>();
        }

        public int Count
        {
            get
            {
                return _list.Count;
            }
        }

        public Action this[int index]
        {
            get
            {
                return _list[index];
            }
        }

        public void Add(Action action)
        {
            _list.Add(action);
        }

        public void Remove(Action action)
        {
            _list.Remove(action);
        }
    }
}
